// 用户
import request from '@/js/request'
/*
@createTime 2020.4.12
@decrease  登录
*/
export const logins = data => {
  return  request.post('/admin/login', data)
}
/*
@createTime 2020.4.12
@decrease  登录
*/
export const getProjectDetail = data => {
    return  request.get('/employ/project/board', data)
  }
// 项目列表
export const projectList = data => {
  return  request.get('/admin/project/list', data)
}
export const projectListAll = data => {
  return  request.get('/admin/project/all', data)
}
// 项目列表
export const zjList = data => {
  return  request.get('/admin/face/device/list', data)
}
// 项目审核
export const projectSh = data => {
  return  request.post('/admin/project/check', data)
}
// 配置秘钥
export const projSetMy = data => {
  return request.post('/admin/project/set', data)
}
// 企业列表

export const getCompanyList = data => {
  return  request.get('/admin/company/list', data)
}
// 企业详情
export const getCompanyDetail = data => {
  return request.get('/admin/company/companyInfo', data)
}
// 企业审核
export const companySh = data => {
  return request.post('/admin/company/check', data)
}

// 设备列表
export const deviceList = data => {
  return request.get('/admin/device/list', data)
}
// 配置设备
export const setDeviceList = data => {
  return request.post('/admin/device/set', data)
}
// 考勤列表
export const getAttendanceList = data => {
  return request.get('/admin/user/alist', data)
}
// 导出考勤
export const exportKaoqing = data => {
  return request.download('/admin/user/downkq', data)
}
// 获取班组列表
export const getBzList = data => {
  return request.get('/admin/team/list', data)
}

// 通过项目 查询班组列表
export const getBzListByProj = data => {
  return request.get('/admin/project/teams', data)
}